Component({
    options: {
        addGlobalClass: true,
        // 启用插槽
        multipleSlots: true
    },
    properties: {

    },
    data: {
        triangleDirection: 'down',
    },
    methods: {
        change_direction() {
            this.setData({
                triangleDirection: this.data.triangleDirection === 'down' ? 'up' : 'down'
            })
        }
    }
})